/**
 * 相关请求路由集合
 * @type {{wsHost: string, localWsHost: string, localHost: string, host: string, gaodeHost: string}}
 */
const baseURL = {
    host: 'https://hd.tmxkj.top',
    localHost: 'http://localhost:8082',
    gaodeHost: 'https://restapi.amap.com',
    wsHost:"wss://hd.tmxkj.top",
    localWsHost:"ws://localhost:8082",
}






//环境地址 true 是正式环境
let Environmental =true






/**
 * 配置信息
 * @type {string}
 */
let apiUrl =Environmental?baseURL.host:baseURL.localHost;
let wsUrl = Environmental ? baseURL.wsHost : baseURL.localWsHost;
/**
 * 配置文件信息
 * @type {{codeUrl: string, visitFileUrl: string, viodeURL: string, uploadUrl: string, avatarUrl: string, gaodeUrl: string, gaodeKey: string, ws: string, packgeMISI: string, url: string}}
 */
let configuration={
    url: apiUrl ,//请求地址
    gaodeUrl: baseURL.gaodeHost,//高德地址
    gaodeKey: "75311caba805f40be10f9633311dedf4" ,//高德密匙
    ws: wsUrl + "/websocket/" ,//websocket地址
    codeUrl: apiUrl + "/user/getCode" ,//获取验证码地址
    uploadUrl: apiUrl + '/file/upload' ,//文件上传地址
    visitFileUrl: apiUrl + "/static/" ,//文件访问地址
    avatarUrl: 'https://tse1-mm.cn.bing.net/th/id/OIP-C.LQD0K6i8TB8aPbfHL5LBtQAAAA?w=159&h=180&c=7&r=0&o=5&dpr=2&pid=1.7' ,//临时头像地址
    viodeURL: "" ,//视频地址
    packgeMISI: '6rDChEJ4',//打包密匙
    openAdminUrl:"https://www.yubin-fuwu.top",//管理后台地址
}



export {configuration}
